package com.aspose.cells;

class zbfs extends zck {
   zbfs(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
      switch(this.e.b) {
      case 1:
      default:
         break;
      case 2:
         com.aspose.cells.b.a.b.a.zi var5 = new com.aspose.cells.b.a.b.a.zi(1.0F, 0.0F, 0.0F, -1.0F, 0.0F, this.e.S().i());
         this.a.b(var5);
         break;
      case 3:
         com.aspose.cells.b.a.b.a.zi var6 = new com.aspose.cells.b.a.b.a.zi(-1.0F, 0.0F, 0.0F, -1.0F, this.e.S().h(), this.e.S().i());
         this.a.b(var6);
         break;
      case 4:
         com.aspose.cells.b.a.b.a.zi var7 = new com.aspose.cells.b.a.b.a.zi(-1.0F, 0.0F, 0.0F, 1.0F, this.e.S().h(), 0.0F);
         this.a.b(var7);
      }

   }

   void b() {
      long var1 = 0L;
      long var3 = 0L;
      float var6;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var1 = com.aspose.cells.b.a.ze.c(this.e.m.a.get(0));
            var3 = com.aspose.cells.b.a.ze.c(this.e.m.a.get(1));
         } else {
            var1 = -20833L;
            var3 = 62500L;
         }

         float var5 = this.e.q() / 2.0F + this.e.q() * Math.abs((float)var1 / 100000.0F);
         var6 = this.e.r() / 2.0F + this.e.r() * Math.abs((float)var3 / 100000.0F);
         if (var5 <= this.e.q() && var6 <= this.e.r()) {
            if (!this.e.w().a()) {
               com.aspose.cells.b.a.b.a.ze var7 = new com.aspose.cells.b.a.b.a.ze();
               var7.b(new com.aspose.cells.b.a.b.zq(this.e.s(), this.e.t(), this.e.q(), this.e.r()));
               com.aspose.cells.b.a.b.zc var8 = zbum.a(this.e.w(), var7);
               this.a.a(var8, this.e.s(), this.e.t(), this.e.q(), this.e.r());
            }

            if (!this.e.x().a()) {
               com.aspose.cells.b.a.b.zm var19 = zbum.a(this.e.x());
               this.a.a(var19, this.e.s(), this.e.t(), this.e.q(), this.e.r());
            }

            this.a();
            return;
         }
      } else {
         var1 = -20833L;
         var3 = 62500L;
      }

      zace var18 = new zace(new zag[]{new zag("adj1", var1), new zag("adj2", var3)}, new zacf[]{new zacf("dxPos", (byte)0, -27273042329602L, 27273042316901L, 100000L, false), new zacf("dyPos", (byte)0, -27273042329603L, 27273042316902L, 100000L, false), new zacf("xPos", (byte)1, -27273042329606L, -27273042329612L, 0L, false), new zacf("yPos", (byte)1, -27273042329607L, -27273042329613L, 0L, false), new zacf("sdx", (byte)0, -27273042329612L, -27273042329603L, 1L, false), new zacf("sdy", (byte)0, -27273042329613L, -27273042329602L, 1L, false), new zacf("pang", (byte)5, -27273042329616L, -27273042329617L, 0L, false), new zacf("stAng", (byte)1, -27273042329618L, 660000L, 0L, false), new zacf("enAng", (byte)1, -27273042329618L, 0L, 660000L, false), new zacf("dx1", (byte)7, -27273042329640L, -27273042329619L, 0L, false), new zacf("dy1", (byte)13, -27273042329641L, -27273042329619L, 0L, false), new zacf("x1", (byte)1, -27273042329606L, -27273042329621L, 0L, false), new zacf("y1", (byte)1, -27273042329607L, -27273042329622L, 0L, false), new zacf("dx2", (byte)7, -27273042329640L, -27273042329620L, 0L, false), new zacf("dy2", (byte)13, -27273042329641L, -27273042329620L, 0L, false), new zacf("x2", (byte)1, -27273042329606L, -27273042329625L, 0L, false), new zacf("y2", (byte)1, -27273042329607L, -27273042329626L, 0L, false), new zacf("stAng1", (byte)5, -27273042329621L, -27273042329622L, 0L, false), new zacf("enAng1", (byte)5, -27273042329625L, -27273042329626L, 0L, false), new zacf("swAng1", (byte)1, -27273042329630L, 0L, -27273042329629L, false), new zacf("swAng2", (byte)1, -27273042329631L, 21600000L, 0L, false), new zacf("swAng", (byte)3, -27273042329631L, -27273042329631L, -27273042329632L, false), new zacf("idx", (byte)7, -27273042329640L, 2700000L, 0L, false), new zacf("idy", (byte)13, -27273042329641L, 2700000L, 0L, false), new zacf("il", (byte)1, -27273042329606L, 0L, -27273042329634L, false), new zacf("ir", (byte)1, -27273042329606L, -27273042329634L, 0L, false), new zacf("it", (byte)1, -27273042329607L, 0L, -27273042329635L, false), new zacf("ib", (byte)1, -27273042329607L, -27273042329635L, 0L, false), new zacf("wd2", (byte)0, -27273042329602L, 1L, 2L, true), new zacf("hd2", (byte)0, -27273042329603L, 1L, 2L, true), new zacf("3cd4", (byte)0, -27273042329601L, 3L, 4L, true), new zacf("cd4", (byte)0, -27273042329601L, 1L, 4L, true)}, new zmj[]{new zmj(-27273042329606L, -27273042329609L, -27273042329642L), new zmj(-27273042329636L, -27273042329638L, -27273042329642L), new zmj(-27273042329636L, -27273042329639L, -27273042329643L), new zmj(-27273042329606L, -27273042329611L, -27273042329643L), new zmj(-27273042329637L, -27273042329639L, -27273042329643L), new zmj(-27273042329610L, -27273042329607L, 0L), new zmj(-27273042329637L, -27273042329638L, -27273042329642L), new zmj(-27273042329614L, -27273042329615L, -27273042329618L)}, new zaf[]{new zaf(false, 27273042316901L, -2147483647L, 2147483647L, 27273042316902L, -2147483647L, 2147483647L, -27273042329614L, -27273042329615L)}, new zatk[]{new zatk(new byte[]{1, 2, 3, 0}, new long[]{-27273042329614L, -27273042329615L, -27273042329623L, -27273042329624L, -27273042329640L, -27273042329641L, -27273042329629L, -27273042329633L}, 0L, 0L, (byte)1, true, true)}, new zah(-27273042329636L, -27273042329638L), new zah(-27273042329637L, -27273042329639L));
      var18.a(0);
      var6 = this.g;
      float var20 = this.h;
      float var21 = this.e.v().h();
      float var9 = this.e.v().i();
      com.aspose.cells.b.a.b.zq var10 = new com.aspose.cells.b.a.b.zq(var6, var20, var21, var9);
      com.aspose.cells.b.a.b.a.zf var11 = this.a.e();
      this.a.a(4);
      com.aspose.cells.b.a.b.zm var12 = zbum.a(this.e.x());
      Object var13 = null;
      com.aspose.cells.b.a.b.a.ze[] var14 = var18.a(var10.f(), var10.g(), var10.h(), var10.i());
      int var15 = var14.length;
      if (var15 != 0) {
         for(int var16 = 0; var16 < var15; ++var16) {
            if (!this.e.w().a()) {
               com.aspose.cells.b.a.b.zc var17 = zbum.a(this.e.w(), var14[var16]);
               this.a.a(var17, var14[var16]);
            }

            if (!this.e.x().a()) {
               this.a.a(var12, var14[var16]);
            }
         }

         this.a();
         this.a.a(var11);
      }
   }

   void c(com.aspose.cells.b.a.b.zq var1) {
      var1 = zbgk.a(var1);
      super.c(var1);
   }
}
